// 导入
import request from '@/utils/request'

// 新增
export const saveItemApi = (data) => {
  return request({
    url: 'api/courseitem/save',
    method: 'post',
    data:data
  })
}

//查询
export const allItemApi = (data) => {
  return request({
    url: 'api/courseitem/all',
    method: 'get',
    params: data
  })
}

//删除
export const deleteItemApi = (data) => {
  return request({
    url: 'api/courseitem/delete',
    method: 'post',
    data: data
  })
}
